<?php

require_once('config.php');

function backup_userdb() {
	global $user_db;

	$date = date('Ymd');

	$backup_filename = "$user_db.$date";

	if (!file_exists($backup_filename)) {
		copy($user_db, $backup_filename);
	}
}

?>
